<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=0,user-scalable=0">
    [#include "/wap/include/static.html"]
    <link rel="stylesheet" href="${pat}/resources/wap/css/me/CAC.css"/>
</head>
<body>
<!--头部-->
<div id="header">
    <div class="left" id="goHeader">
        <img id="goBack" src="${pat}/resources/wap/img/invest/back.png">
    </div>
    <div class="center">
        账户中心
    </div>
</div>
<!--总资产-->
<div class="neck">
    <div class="neck-left">
        <p class="left-top">可用金额 (元)</p>

        <p class="left-bottom">${account.balance}</p>
    </div>
    <div class="neck-center">
        <p class="center-top">总资产</p>
        <span class="center-bottom1">${account.total}</span>
        [#--<span class="center-bottom2">.33</span>--]
    </div>
    <div class="neck-right">
        <p class="right-top">累计收益 (元)</p>

        <p class="right-bottom">${income}</p>
    </div>
</div>
<!--充值提现-->
<div class="cash-value">
    <div class="cash" onclick="recharge()">
        <div class="left">充值</div>
        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>

    </div>
    <div class="value" onclick="cash()">
        <div class="left">提现</div>
        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>
    </div>

</div>
<!--我的投资-->
<div class="invest">
    <div class="me-invest" onclick="window.location.href='${path}/wap/member/loan?type=repaying'">
        <div class="left">投标记录</div>

        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>
        <div class="center">5天之内有回款</div>
    </div>
    <div class="cash" onclick="window.location.href='${path}/wap/member/account/log'">
        <div class="left">资产记录</div>
        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>

    </div>
    [#--<div class="value" onclick="window.location.href='${path}/wap/member/redpacket/list'">--]
        [#--<div class="left">我的优惠券</div>--]
        [#--<div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>--]
    [#--</div>--]
</div>
<!--邀请好友-->

<div class="invite">
    <div class="value"  onclick="window.location.href='${path}/wap/member/invite'">
        <div class="left">邀请好友</div>
        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>
    </div>
</div>
<!--银行卡管理-->
<div class="administration">

    <div class="cash" onclick="bankmanager()">
        <div class="left">银行卡管理</div>
        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>

    </div>
    <div class="value"  onclick="window.location.href='${path}/wap/member/safecenter'">
        <div class="left">安全中心</div>
        <div class="right"><img src="${path}/resources/img/me/right-arr.png" alt=""></div>
    </div>
    <input name="realname" type="hidden" value="${realName.id}">
    <input name="bank" type="hidden" value="${bank.id}">
</div>
<!--底部-->
[#include "/wap/include/footer.ftl"]
</body>
<script>
    function  recharge(){
        var realname = '${realName.id}';
        var bank = '${bank.id}';
        if(realname==''){
            layer.confirm("您尚未实名认证,去实名认证吗",function(){
                window.location.href="${path}/wap/member/auth";
            });
            return ;
        }
        if(bank==''){
            layer.confirm("您尚未绑卡,去绑卡",function(){
                window.location.href="${path}/wap/member/bankbind";
            });
            return;
        }
        window.location.href="${path}/wap/member/recharge";

    }
    function bankmanager(){
        var realname = '${realName.id}';
        if(realname==''){
            layer.confirm("您尚未实名认证,去实名认证吗",function(){
                window.location.href="${path}/wap/member/auth";
            });
            return ;

        }
        window.location.href="${path}/wap/member/bankbind";
    }
    function  cash(){
        var realname = '${realName.id}';
        var bank = '${bank.id}';
        if(realname==''){
            layer.confirm("您尚未实名认证,去实名认证吗",function(){
                window.location.href="${path}/wap/member/auth";
            });
            return ;
        }
        if(bank==''){
            layer.confirm("您尚未绑卡,去绑卡",function(){
                window.location.href="${path}/wap/member/bankbind";
            });
            return;
        }
        window.location.href="${path}/wap/member/account/cash";

    }



</script>
</html>